
    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Memory Rating Prompt - 学习卡片</title>
      <style>
        body { font-family: sans-serif; background-color: #f0f8ff; color: #333; display: flex; flex-direction: column; align-items: center; padding: 50px 20px; }
        .header h1 { font-size: 32px; }
        .grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; max-width: 1200px; }
        .card-container { perspective: 1200px; cursor: pointer; height: 250px; }
        .card { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.7s; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
        .card-container.flipped .card { transform: rotateY(180deg); }
        .card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; box-sizing: border-box; border-radius: 16px; background-color: #fff; padding: 24px; }
        .card-back { background-color: #f0fff4; transform: rotateY(180deg); justify-content: space-between; }
        .card-category { font-size: 14px; color: #0052d9; margin-bottom: 8px; font-weight: 500; }
        .card-question { font-size: 20px; font-weight: 500; flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
        .card-answer-wrapper { flex-grow: 1; overflow-y: auto; }
        .card-answer { font-size: 15px; line-height: 1.7; }
        .card-footer { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 16px; margin-top: 16px; }
        .card-source { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
      </style>
    </head>
    <body>
      <div class="header">
        <h1>Memory Rating Prompt - 学习卡片</h1>
      </div>
      <div class="grid-container">
        
    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">目标</div>
          <div class="card-question">根据文档，系统的核心目标是什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">目标</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">系统的核心目标是分析用户与助手之间的对话，并确定哪些信息对未来的对话可能有用，需要被“记住”。</div>
          </div>
          <div class="card-source">来源: <goal></div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">标准</div>
          <div class="card-question">“正面标准” (positive_criteria) 中列举了哪些应该被记住的用户偏好类型？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">标准</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">应记住的偏好类型包括：用户喜欢如何工作的高级偏好（必须具体且可操作）、用户偏好的一般模式或方法（必须有明确指导）、以及具体的技术偏好（如编码风格、框架选择）。</div>
          </div>
          <div class="card-source">来源: <positive_criteria></div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">标准</div>
          <div class="card-question">“负面标准” (negative_criteria) 指出哪几类信息不应该被记住？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">标准</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">不应记住的信息包括：无法泛化的一次性任务细节、不会被重用的实现细节、与后续无关的临时上下文、纯粹来自助手而非用户对话的上下文、以及模糊或过于明显的偏好（如“喜欢代码整洁”）。</div>
          </div>
          <div class="card-source">来源: <negative_criteria></div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">正例</div>
          <div class="card-question">文档中给出了哪些“应该被记住”的正面记忆示例？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">正例</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">正面示例包括：“保持函数在50行以下以提高可读性”（具体且可操作的偏好）、“使用 async/await 风格而非 promise 链”（明确的技术偏好）、以及“在运行终端命令前先运行 'npm install'”（具体的工作流程步骤）。</div>
          </div>
          <div class="card-source">来源: <examples_should_remember></div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">反例</div>
          <div class="card-question">为什么“用户希望有良好的错误处理”被认为是一个不应记住的坏记忆？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">反例</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">因为它不具有可操作性（Not actionable）。这是一个过于宽泛和普遍的良好实践，几乎所有用户都会期望，因此不构成一个需要特别记住的个人偏好。</div>
          </div>
          <div class="card-source">来源: <examples_should_not_remember></div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">反例</div>
          <div class="card-question">在一个用户询问实现细节是否正确的场景中，为什么不应该根据助手的详细回答来创建记忆？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">反例</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">因为记忆应该源于用户表达的通用偏好、规则或模式，而不是源于助手对用户简单查询的详细解释。用户的输入仅仅是针对当前任务特定细节的验证请求，并未表达一个普适性的偏好。</div>
          </div>
          <div class="card-source">来源: <examples_should_not_remember></div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">特性</div>
          <div class="card-question">“正面标准” (positive_criteria) 对要记录的“用户工作流偏好”有什么具体要求？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">特性</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">要求是必须包含具体的步骤或规则 (MUST include concrete steps or rules)，例如文档中提到的 "Run 'npm install' to install dependencies before running terminal commands"。</div>
          </div>
          <div class="card-source">来源: <positive_criteria></div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">格式</div>
          <div class="card-question">当系统决定需要创建一个记忆时，应以何种JSON格式返回响应？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">格式</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">应返回一个包含两个键的JSON对象："explanation"（解释为何该记忆不违反任何负面标准）和 "memory"（要记住的通用偏好或方法）。</div>
          </div>
          <div class="card-source">来源: <formatting_instructions></div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">格式</div>
          <div class="card-question">如果系统判断在一次对话中不需要创建任何记忆，应该返回什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">格式</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">应该精确地返回字符串 “no_memory_needed”。</div>
          </div>
          <div class="card-source">来源: <formatting_instructions></div>
        </div>
      </div>
    </div>

      </div>
    </body>
    </html>
